home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / Implementation / Core / PrefsDef.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-13  |  3.5 KB  |  93 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        PrefsDef.h
  3.  
  4.     Contains:    Constants for prefs
  5.  
  6.     Owned by:    Ed Lai
  7.  
  8.     Copyright:    © 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.         <10>     12/2/96    EL        1390351: Add alert to cancelling updating
  13.                                     editor database dialog.
  14.          <9>     9/13/96    jpa        EL: 1386043: Added kODCacheTempSuffix
  15.          <8>     6/27/96    TJ        Added special OpenDoc editors type.
  16.          <7>     6/22/96    EL        1210509: alert when two editors with same
  17.                                     nmap. 1218948: alert when deleting pref
  18.                                     file.
  19.          <6>     6/19/96    EL        1358681: Resource IDs are in the reserved
  20.                                     range.
  21.          <5>      6/4/96    EL        1283131: Separate Alerts for bad alias in
  22.                                     editor folder and in library folder.
  23.          <4>     5/17/96    EL        #1263100: Add constants for update editor
  24.                                     dialog.
  25.          <3>      5/3/96    EL        1333188: define constant for Editor Hint
  26.                                     File Type.
  27.          <2>      2/2/96    TJ        Added defines for the oldest version of
  28.                                     prefrences that we understand.
  29.          <9>     8/30/95    CG        #1257569 FB3:Added kODPrefsFolderNameStrID.
  30.          <8>     8/11/95    jpa        Number rsrcs from subsystem base [1276412]
  31.          <7>     6/22/95    jpa        Added kODBadAliasInEditorsAlertID [1257556]
  32.          <6>      6/9/95    CG        #1203571 implemented nmap caching
  33.                                     mechanism.
  34.          <5>     5/16/95    jpa        Added kODScanEditorsDialogID [1240150]
  35.          <3>     2/14/95    TJ        Fixed copyright date.
  36.          <2>     2/14/95    jpa        Added kODEditorHintFileName [1205141]
  37.          <1>      2/2/95    CG        first checked in
  38.     To Do:
  39. */
  40.  
  41. #ifndef _PREFSDEF_
  42. #define _PREFSDEF_
  43.  
  44. #ifndef _RSRCBASE_
  45. #include "RsrcBase.h"
  46. #endif
  47.  
  48. #define kODPrefsFileNameStrID         (kODCoreRsrcBase + 0)
  49. #define kODEditorsFldrNameStrID     (kODCoreRsrcBase + 1)
  50. #define kODLibsFldrNameStrID        (kODCoreRsrcBase + 2)
  51. #define kODPrefsFolderNameStrID     (kODCoreRsrcBase + 3)
  52. #define kODSpecialEditorType        'oded'
  53.  
  54. #define kODEditorHintFileType '\?\?\?\?'
  55. #define kODEditorHintFileName "\pOpenDocInfo\r"
  56. // This is the invisible file stored on the root of a volume whose data fork
  57. // contains the name of the "Editors" folder. The name of this file is purposely
  58. // NOT localized so that it can be found on all hard disks, regardless of their
  59. // foreign tongues.
  60.  
  61. #define kODCacheFileName "\pODCacheFile\r"
  62. // This is the invisible cache file stored at the top of each folder structure
  63. // whose files contain nmap resources. The name of this file is purposely
  64. // NOT localized so that it can be found on all hard disks, regardless of their
  65. // foreign tongues.
  66. #define kODCacheTempSuffix "Temp"
  67.  
  68. // This is the suffix we append on the cache file during construction
  69. // the suffix will be removed when construction is complete
  70.  
  71. #define kODScanEditorsDialogID            (kODCoreRsrcBase + 3)
  72. #define kODBadAliasInEditorsAlertID        (kODCoreRsrcBase + 4)
  73. #define kODBadAliasInLibrariesAlertID    (kODCoreRsrcBase + 5)
  74. #define kODEditorNmapClashAlertID        (kODCoreRsrcBase + 6)
  75. #define kODEditorPrefsDamagedAlertID    (kODCoreRsrcBase + 7)
  76. #define kODScanEditorsAlertID            (kODCoreRsrcBase + 8)
  77.  
  78. #define kScanEditorsProgressItem        1
  79. #define kScanEditorsStopButton               3
  80.  
  81. #define kPICTRsrcType                    'PICT'
  82. #define kScanEditorsProgressBarID        (kODCoreRsrcBase + 0)
  83.  
  84.  
  85.  
  86. // This is the oldest version of prefs that OpenDoc is compatible with
  87. #define kODPrefsCompatiblemajorRev                1            /*1st part of version number in BCD*/
  88. #define kODPrefsCompatibleminorAndBugRev         0            /*2nd & 3rd part of version number share a byte*/
  89. #define kODPrefsCompatiblestage                    0x80        /*stage code: dev, alpha, beta, final*/
  90. #define kODPrefsCompatiblenonRelRev                0            /*revision level of non-released version*/
  91.  
  92. #endif
  93.